








//
//  ScrollViewImage.m
//  XJMCustomer
//
//  Created by Mr.hu on 2017/10/19.
//  Copyright © 2017年 Mr.hu. All rights reserved.
//

#import "ScrollViewImage.h"
#import "YGBanner.h"

@interface ScrollViewImage ()<UIScrollViewDelegate>
/** 注释 **/
@property (strong, nonatomic) YGBanner * banner;

@end

@implementation ScrollViewImage

- (void)viewDidLoad {
    [super viewDidLoad];
    
    NSArray * AdvertiseImage = [NSArray arrayWithObjects:@"http://octbz92rx.bkt.clouddn.com/index%E6%96%B0+++++++++++_12.png",@"http://octbz92rx.bkt.clouddn.com/index%E6%96%B0+++++++++++_12.png",@"http://octbz92rx.bkt.clouddn.com/index%E6%96%B0+++++++++++_12.png",@"http://octbz92rx.bkt.clouddn.com/index%E6%96%B0+++++++++++_12.png", nil];
    
    _banner = [[YGBanner alloc] initWithFrame:CGRectMake(0,0, ScreenWidth, ScreenHeight) imageNames:AdvertiseImage imageHandle:^(NSInteger index) {
        
        [self dismissViewControllerAnimated:YES completion:^{
            
        }];
        
    }];
    
    [self.view addSubview:_banner];
    
}

@end
